 package com.pansky.integration.common.utils;
 
 public class BaiduAgentUtils
 {
   public static String getImageSuffix(String path)
   {
     int index = path.lastIndexOf(".");
     if (index < 0) {
       return "";
     }
     try
     {
       String suffix = path.substring(index);
       if ((suffix != null) && (suffix.length() < 5))
         return suffix;
     }
     catch (Exception e) {
       e.printStackTrace();
     }
     return "";
   }
 }




